package md.rdcrng.cvs;

import java.util.Map;
import javax.faces.application.Application;
import javax.faces.component.UIViewRoot;
import javax.faces.context.FacesContext;

/**
 <p/>
 @author Radu Creanga <rdcrng@gmail.com>
 */
class Faces {

    private Faces() {
    }

    public static FacesContext getFacesContext() {
        return FacesContext.getCurrentInstance();
    }

    public static Application getApplication() {
        return Faces.getFacesContext().getApplication();
    }

    public static UIViewRoot getViewRoot() {
        return Faces.getFacesContext().getViewRoot();
    }

    public static Map<String, Object> getViewMap() {
        return Faces.getViewRoot().getViewMap();
    }

}
